<include file="Public:header_user"/>

<neq name="user.lawyer_info.audit_status" value="1">
	<div class="order_btm_tips" style="margin-top: 0px;color: red">
		<eq name="user.lawyer_info.audit_status" value="0">
			账号审核中，暂时不可进行操作，米律会在1-2个工作日审核，如有疑问请联系：400 0268 236
		</eq>
		<eq name="user.lawyer_info.audit_status" value="2">
			账号审核失败({$user.lawyer_info.audit_reason})，如有疑问请联系：400 0268 236
		</eq>
	</div>
</neq>
<div class="user_detail">
	<div class="clearfix user_info">
		<a href="{:URL('LawyerCenter/upload_head')}"><img class="head" src="{:img($user_head_url, 200, 200)}" alt="" /></a>
		<div class="info">
			<h4 class="nick">{$user_name}</h4>
			<ul class="clearfix">
				<li class="city">{$user_city_name}</li>
				<li class="tel">{$user_mobile}</li>
				<li class="mail">{$user_email}</li>
			</ul>
			<a class="link_edit" href="{:URL('LawyerCenter/basic_info')}">个人资料编辑</a>
		</div>
	</div>
	<div class="clearfix user_account">
		<ul>
			<li class="first">
				<label>待处理订单</label>
				<span class="red">{$wait_num|default=0}</span>
			</li>
			<li>
				<label>处理中订单</label>
				<span class="blue">{$doing_num|default=0}</span>
			</li>
			<li>
				<label>收入</label>
				<span class="green">{$account_info['usable_account']|default=0}</span>
			</li>
			<li class="last">
				<label>评分</label>
				<span class="black">{$lawyer_info['total_avg_score']}</span>
			</li>
		</ul>
	</div>
</div>

<div class="clearfix mt32 member_menu">
	<ul>
		<li <eq name="type" value="all">class="cur"</eq>>
			<a href="{:U('index', array('type' => 'all'))}">全部</a>
		</li>
		<li <eq name="type" value="wait">class="cur"</eq>>
			<a href="{:U('index', array('type' => 'wait'))}">待处理</a>
		</li>
		<li <eq name="type" value="doing">class="cur"</eq>>
			<a href="{:U('index', array('type' => 'doing'))}">处理中</a>
		</li>
		<li <eq name="type" value="finish">class="cur"</eq>>
			<a href="{:U('index', array('type' => 'finish'))}">已处理</a>
		</li>
	</ul>
</div>
<table class="lawyer_table">
	<thead>
		<tr>
			<th class="name">服务名称</th>
			<th class="type">类别</th>
			<th class="aftermarket">售后</th>
			<th class="buyer">买家</th>
			<th class="time">下单时间</th>
			<th class="status">订单状态</th>
			<th class="money">实付金额</th>
			<th class="user">处理律师</th>
			<th class="operate">操作</th>
		</tr>
	</thead>
	<tbody>
		<volist name="list" id="rs">
		<tr>
			<td class="num" colspan="9">
				<span>订单编号：{$rs['order_sn']}</span>
			</td>
		</tr>
		<tr>
			<td class="name">{$rs['title']}</td>
			<td class="type">{$rs['category_name']}</td>
			<td class="aftermarket"></td>
			<td class="buyer">
				<span>{$rs['user_name']}</span>
				<span>{$rs['user_mobile']}</span>
			</td>
			<td class="time">{$rs['datetime']}</td>
			<td class="status">
				<span style="color: {$rs['status_color']}">{$rs['lawyer_status_desc']}</span>
				<span class="grey">{:date('Y-m-d H:i:s', $rs['edit_time'])}</span>
			</td>
			<td class="money">
				<strong>￥{$rs['order_amount']}</strong>
			</td>
			<td class="user">{$rs['lawyer_name']}</td>
			<td class="operate">
				<a class="btn_treat" href="{:U('detail', array('order_sn' => $rs['order_sn']))}">
					<eq name="rs.status" value="wait-lawyer">
						点击处理
					<else/>
						查看
					</eq>
				</a>
			</td>
		</tr>
		</volist>
		<empty name="list">
		<tr>
			<td class="no_result" colspan="9">
				抱歉，没有找到对应的订单数据。
			</td>
		</tr>
		</empty>
	</tbody>
</table>

<div class="page">{$page}</div>
			
<include file="Public:footer_user"/>